widget: Get rid of gdk_drawable_get_size() usage
authorBenjamin Otte <otte@redhat.com>
Mon, 20 Sep 2010 14:44:47 +0000 (16:44 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 26 Sep 2010 13:11:44 +0000 (15:11 +0200)
gtk/gtkwidget.c

index 096740ca7b87416ca372e839c579e997cac7a7fa..092b0d786e35fd55f17b835dd2e7ec091ae68d27 100644 (file)
@@ -3980,7 +3980,8 @@ gtk_widget_queue_draw_area (GtkWidget *widget,
          x -= wx - priv->allocation.x;
          y -= wy - priv->allocation.y;
 
-         gdk_drawable_get_size (priv->window, &wwidth, &wheight);
+          wwidth = gdk_window_get_width (priv->window);
+          wheight = gdk_window_get_height (priv->window);
 
          if (x + width <= 0 || y + height <= 0 ||
              x >= wwidth || y >= wheight)